import { sysConfig } from '@/api/interface/interface';
import { getInfoApi } from '@/api/fan/index';
import { defineStore } from 'pinia';


/**
 * 存入参数
 */
export const configStore = defineStore('config', {
    state: () => {  // 存放的就是模块的变量
        return {
            setInfo: {} as any
        }
    },
    actions: {
        async initInfoData() {
            const res = await getInfoApi()
            this.setInfo = res.data;
        },
    }
});
